﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_nor.aspx.cs" Inherits="He.Web.manage.admin_nor" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="He.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><%=siteinfo.WebName %>后台管理系统</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
<link href="../../plug/custom-theme/jquery-ui-1.7.2.custom.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="../../plug/custom-theme/jquery-ui-1.7.2.custom.min.js"></script>
<script src="js/function.js" type="text/javascript"></script>
<script type="text/javascript">
        $(function () {
            $(".menu_body").hide();
            $(".menu_head").click(function () {
                //通过next(".menu_body") 获得对应的内容DIV，让其具有“滑动”效果  
                // 再通过siblings(".menu_body")获得所有同级的 内容DIV， 让其滑动着隐藏起来， （同一时间，只有一个内容DIV显示出来）  
                $(this).next(".menu_body").slideDown(500).siblings(".menu_body").hide();
            });
        });
        //主框架切换及显示首次快捷菜单
        $(function () {
            //关闭打开左栏目
            $("#sysBar").toggle(function () {
                $("#mainLeft").hide();
                $("#barImg").attr("src", "images/butOpen.gif");
            }, function () {
                $("#mainLeft").show();
                $("#barImg").attr("src", "images/butClose.gif");
            });
            //页面加载完毕，显示第一个子菜单
            $(".left_menu").hide();
            $(".left_menu:eq(0)").show();
        });
    </script>
</head>
<body style="padding: 0">
<form id="form1" runat="server">
  <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="background: #EBF5FC;">
    <tbody>
      <tr>
        <td height="50" colspan="3" style="background: url(images/head_bg.gif);"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="240" height="50"><img src="images/head_logo.png" width="233" height="50" /> </td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="30" colspan="3" style="padding: 0px 10px; font-size: 12px; background: url(images/navsub_bg.gif) repeat-x;"><div style="float: right; line-height: 20px;"> <a target="_blank" href="../">预览网站</a> |
            <asp:LinkButton ID="lbtnClearCache" runat="server" OnClick="lbtnClearCache_Click">更新网站缓存</asp:LinkButton>
            |
            <asp:LinkButton ID="lbtnExit" runat="server" OnClick="lbtnExit_Click">安全退出</asp:LinkButton>
          </div>
          <div style="padding-left: 20px; line-height: 20px; background: url(images/siteico.gif) 0px 0px no-repeat;"> 当前登录用户：<font color="#FF0000">
            <asp:Label ID="lblAdminName" runat="server" Text="Label"></asp:Label>
            </font>您好，欢迎光临。 <%=langTransTxt%></div></td>
      </tr>
      <tr>
        <td align="center" id="mainLeft" valign="top" height="100%" style="background: #FFF;"><div style="text-align: left; width: 185px; height: 100%; font-size: 12px;">
            <%if (channel_list != null)
                          {
                              foreach (He.Model.channel scmodel in channel_list)
                              { %>
            <div class="menu_head"> <span class="menu_span"> <%=scmodel.manage_title%></span> </div>
            <div class="menu_body">
              <ul>
                <%if (scmodel.model_id == (int)Enums.sys_model.内容模块)
                                  {
                                      List<He.Model.article> content_list = new He.BLL.article().GetModelList(scmodel.id);
                                      if (content_list != null)
                                      {
                                          foreach (He.Model.article cmodel in content_list)
                                          {
                                %>
                <li><a href='<%=scmodel.manage_url %>/edit.aspx?channel_id=<%=scmodel.id %>&id=<%=cmodel.id %>&action=<%=Enums.ActionEnum.Edit %>'
                                    target="sysMain"> <%=cmodel.title%></a></li>
                <%
                                    }
                                      }
                                  }%>
                <li><a href="<%=scmodel.manage_url %>/list.aspx?channel_id=<%=scmodel.id %>" target="sysMain"> 内容管理</a></li>
                <%
                                    if (scmodel.show_attrfield == 1)
                                    {
                                %>
                <li><a href="attrfield/list.aspx?channel_id=<%=scmodel.id %>" target="sysMain">扩展字段</a></li>
                <%}
                                    if (scmodel.show_category == 1)
                                    { 
                                %>
                <li><a href="category/List.aspx?channel_id=<%=scmodel.id %>" target="sysMain">栏目类别</a></li>
                <%}
                                    if (scmodel.model_id != (int)Enums.sys_model.内容模块)
                                    {%>
                <li><a href="comment/list.aspx?channel_id=<%=scmodel.id %>" target="sysMain">评论管理</a></li>
                <%} %>
                <li><a href="channel/config.aspx?channel_id=<%=scmodel.id %>" target="sysMain">参数设置</a></li>
              </ul>
            </div>
            <%
                            }
                          } %>
            <%
                            if (show_plug)
                            {
                        %>
            <div class="menu_head"> <span class="menu_span">互动模块</span> </div>
            <div class="menu_body">
              <ul>
                <%
                                    foreach (He.Model.plug item in plug_list)
                                    {
                                        if (item.IsShow && item.Lang == lang)
                                        {
                                %>
                <li><a href="<%=item.ManageUrl %><%=He.Web.UI.UrlHelper.GetUrlSymbol(item.ManageUrl) %>lang=<%=lang %>"
                                    target="sysMain"> <%=item.Name%></a></li>
                <%
                                    }
                                    }
                                %>
              </ul>
            </div>
            <%
                            }
                        %>
            <%
                            if (new AdHelper().IsExistAdPos(lang) && ad_position_list != null)
                            { 
                        %>
            <div class="menu_head"> <span class="menu_span">广告位管理</span> </div>
            <div class="menu_body">
              <ul>
                <%
                                    foreach (He.Model.ad_position ad_position in ad_position_list)
                                    { 
                                %>
                <li><a href="ad/list.aspx?lang=<%=ad_position.lang %>&position_id=<%=ad_position.id %>"
                                    target="sysMain"> <%=ad_position.title%></a></li>
                <%
                                    }
                                %>
              </ul>
            </div>
            <%
                            }
                        %>
            <%if (ShowWx)
                          {%>
            <div class="menu_head"> <span class="menu_span">微信公众平台</span> </div>
            <div class="menu_body">
              <ul>
                <li><a target="sysMain" href="weixin/config.aspx?lang=<%=lang %>">参数设置</a></li>
                <li><a target="sysMain" href="weixin/keyword_list.aspx?lang=<%=lang %>">自动回复</a></li>
                <li><a target="sysMain" href="weixin/group_msg.aspx?lang=<%=lang %>">群发消息</a></li>
                <li><a target="sysMain" href="weixin/menu_list.aspx?lang=<%=lang %>">自定义菜单</a></li>
              </ul>
            </div>
            <%} %>
            <div class="menu_head"> <span class="menu_span">系统管理</span> </div>
            <div class="menu_body">
              <ul>
                <li><a target="sysMain" href="site/info.aspx?lang=<%=lang %>">网站信息设置</a></li>
                <li><a target="sysMain" href="site/config.aspx?lang=<%=lang %>">网站参数设置</a></li>
                <li><a target="sysMain" href="sitemap/gen.aspx">生成站点地图</a></li>
                <li><a target="sysMain" href="tools/txt_replace.aspx">文本批量替换</a></li>
                <li><a target="sysMain" href="collect/menu.aspx">新闻采集</a></li>
                <%if (LangHelper.GetLangNum() > 1)
                                  {%>
                <li><a target="sysMain" href="tools/copy_category.aspx">分类下数据对拷</a></li>
                <li><a target="sysMain" href="tools/copy_channel.aspx">栏目下数据对拷</a></li>
                <%} %>
                <li><a target="sysMain" href="administrator/list.aspx">管理员管理</a></li>
                <%if (webset.adminlogs_status == (int)Enums.Status.开启)
                                  { %>
                <li><a target="sysMain" href="adminlogs/list.aspx">管理员操作日志</a></li>
                <%} %>
                <li><a target="sysMain" href="tools/backup.aspx">数据库管理</a></li>
              </ul>
            </div>
          </div></td>
        <td valign="middle" style="width: 8px; background: url(images/main_cen_bg.gif) repeat-x;"><div id="sysBar" style="cursor: pointer;"> <img id="barImg" src="images/butClose.gif" alt="关闭/打开左栏" /></div></td>
        <td style="width: 100%" valign="top"><iframe frameborder="0" id="sysMain" name="sysMain" scrolling="yes" src="<%=defaultTarget %>"
                        style="height: 100%; visibility: inherit; width: 100%; z-index: 1;"></iframe></td>
      </tr>
      <tr>
        <td height="28" colspan="3" bgcolor="#EBF5FC" style="padding: 0px 10px; font-size: 10px;
                    color: #2C89AD; background: url(images/foot_bg.gif) repeat-x;"> Copyright Right © 2010-<%=DateTime.Now.Year %> <%=SiteDomain %> Powered By <%=siteinfo.WebName %> Inc </td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>
